<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script th:inline="javascript">
    var msg = 'Hello '+[[${user.usrName}]]+'！';
    alert(msg);
</script>
	欢迎您，<span th:text="| hello  ${user.usrName}|">usrName</span>！
    <br>
    欢迎您，<span>[[${user.usrName}]]</span>！

	<p th:text="${#request.getAttribute('test')}"></p>
    <p th:text="${test1}"></p>

	<p th:text="${session.test}"></p>

    <p th:text="${date}">2019-11-27 15:56:30</p>
    <p th:text="${#dates.format(date, 'yyyy-MM-dd HH:mm:ss')}">2019-11-27 15:56:30</p>

    <p th:text="${#dates.createToday()}">2019-11-27</p>

    <p>
        <a href="http://www.baidu.com?id=111">百度</a>
        <br>
        <a th:href="@{/login(id=222)}">thymeleaf</a>

        <br>
        <a th:if="${test1 == 'model'}" th:href="@{/login(id=222)}">if</a>

        <a th:unless="${test1 == 'amodel'}" th:href="@{/login(id=222)}">unless</a>
    </p>
</body>
</html>